import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;

public class Demo8 {
    public static void main(String[] args) {
        try(Reader reader = new FileReader("./test.txt")){
            while(true){
                int b = reader.read();
                if(b == -1) break;
                System.out.println((char) b);
            }
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
